Fixing broken links

When you check links in Dreamweaver, the Link Checker dialog box appears with a report of broken links, external links, and—if you chose to check the entire site—orphaned files.

You can fix broken links and image references directly in the Link Checker dialog box, or you can open files from the list and fix links in the Property inspector.

To fix links in the Link Checker dialog box:

1 In the Link Checker dialog box, select the broken link.
2 Type the correct path and file name, or click the folder icon to browse to the file.
If there are other broken references to this same file, a dialog box appears prompting you to fix the references in the other files as well. Click Yes to have Dreamweaver update all the documents on the list that reference this file. Click No to have Dreamweaver update the current reference only. Click Cancel to make no changes.

Note: If you have file check-in/check-out enabled in the Site FTP preferences, Dreamweaver attempts to check out files that require changes. If it cannot check out a file, Dreamweaver displays a warning dialog box and leaves broken references unchanged. See About checking in and checking out files.

To fix links in the Property inspector:

1 In the Link Checker dialog box, double-click an entry in the File column.
Dreamweaver opens the document, selects the offending image or link, and highlights the path and filename in the Property inspector. (If the Property inspector is not visible, choose Window > Properties to open it.)
2 Type over the highlighted text to set a new path and file name, or click the folder icon to browse to the file.
If you are updating an image reference and the new image appears at the incorrect size, click the W and H labels in the Property inspector to reset the height and width values. The labels change from bold to normal type.
3 Save the file.

As links are fixed, their entries disappear from the Broken Links list. If an entry still appears in the list after you have entered a new path or filename in the Link Checker (or after you have saved any changes you made in the Property inspector), it means that Dreamweaver cannot find the new file. The link is still considered broken.